package com.lenovo.locationmanager;

import android.location.Location;

import java.io.Serializable;
import java.util.List;

/**
 * @ProjectName: GpsAutoTest
 * @Package: com.lenovo.gpsautotest.LocationManager
 * @ClassName: FixResult
 * @Description: FixResult类作用描述
 * @Author: kgzhou
 * @CreateDate: 2019/6/12 14:30
 * @UpdateUser: kgzhou
 * @UpdateDate: 2019/6/12 14:30
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */
public class FixResult implements Serializable {

    private int sessionNo=-1;

    private Location location;

    private int ttff=-1;

    private List<com.lenovo.locationmanager.GpsSatellite> gpsSatellites;

    private String startTime="";
    private String endTime="";
    private int failCounter;

    public int getSessionNo() {
        return sessionNo;
    }

    public void setSessionNo(int sessionNo) {
        this.sessionNo = sessionNo;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public int getTtff() {
        return ttff;
    }

    public void setTtff(int ttff) {
        this.ttff = ttff;
    }

    public List<GpsSatellite> getGpsSatellites() {
        return gpsSatellites;
    }

    public void setGpsSatellites(List<GpsSatellite> gpsSatellites) {
        this.gpsSatellites = gpsSatellites;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getFailCounter() {
        return failCounter;
    }

    public void setFailCounter(int failCounter) {
        this.failCounter = failCounter;
    }

    public void clearCache(){
        sessionNo=-1;
        ttff=-1;
        location=null;
        gpsSatellites=null;
        startTime="";
        endTime="";
        failCounter=0;
    }
}
